//
//  AppDelegate.m
//  12--StoryBoard(SB)
//
//  Created by 冀永金 on 16/7/29.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    // storyboard
    // 1.与xib相同的是，都属于IB开发
    // 2.与xib不同，sb是多视图管理
    // 3.创建Sinle View Application 会自动生成两个sb 文件
    //Main.storyboard 主要视图控制器管理
    //LaunchScreen.storyboard 启动屏幕页视图管理（在Xcode 7以前，生成的是.xib 文件）
    // 4.如果使用sb开发， 就不需要创建windown
    //Main.storyboard
    // 系统默认，Main为整个程序的入口
    // Main.sb 默认ViewControlller 为整个 stroyBoard的入口
    //  自定义sb
    // 工程中，可以含多个storyboard
    // 工程中的Main.sb 可以修改成自定义的sb
    // 让sb有个初始的VC
    // 让VC和sb有关联
    
    // sb中界面跳转是单向的
    // 1.UIStoryboardSegue 用来页面执行跳转

    // 2.若果要是页面跳转变为双向  需要自己去定义UIStoryboardSegue
    // 3.自定义完成后，系统会自动识别到sb 中
    // 3.注意：自定义时，必须要重写- （void）perform方法
    // 系统的界面跳转方式
    // show  根据是否包含navigationController 决定跳转，包含push  不包含 present
    // show Detail present 的效果（模态效果）
    // present  （模态）
    
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
